package business.impls.stores;

import business.interfaces.stores.ExamStore;
import business.interfaces.classes.Exam;
import business.interfaces.classes.Abit;
import business.impls.commons.implAbitSystemData;
import business.impls.classes.implExam;

import java.util.ArrayList;

/**
 * Created by IntelliJ IDEA.
 * User: alex
 * Date: 08.04.2005
 * Time: 16:30:02
 * To change this template use File | Settings | File Templates.
 */
public class implExamStore extends implAbitSystemData implements ExamStore{
    public Exam getExam(int ex) {
        implExam tmp = new implExam();
        tmp.setDataProvider(prov);
        tmp.setDataSystem(system);
        tmp.setExamID(ex);
        return tmp;
    }

    public ArrayList<Exam> getExamsForAbit(Abit abit) {
        implExam tmp = new implExam();
        tmp.setDataProvider(prov);
        tmp.setDataSystem(system);
        return tmp.getExamsForAbit(abit);
    }
}
